package com.ktgj.hotel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.hotel.mapper.HotelRoomPriceMapper;
import com.ktgj.hotel.domain.HotelRoomPrice;
import com.ktgj.hotel.service.IHotelRoomPriceService;

/**
 * 酒店房型价格Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-25
 */
@Service
public class HotelRoomPriceServiceImpl implements IHotelRoomPriceService 
{
    @Autowired
    private HotelRoomPriceMapper hotelRoomPriceMapper;

    /**
     * 查询酒店房型价格
     * 
     * @param roomPriceId 酒店房型价格ID
     * @return 酒店房型价格
     */
    @Override
    public HotelRoomPrice selectHotelRoomPriceById(Long roomPriceId)
    {
        return hotelRoomPriceMapper.selectHotelRoomPriceById(roomPriceId);
    }

    /**
     * 查询酒店房型价格列表
     * 
     * @param hotelRoomPrice 酒店房型价格
     * @return 酒店房型价格
     */
    @Override
    public List<HotelRoomPrice> selectHotelRoomPriceList(HotelRoomPrice hotelRoomPrice)
    {
        return hotelRoomPriceMapper.selectHotelRoomPriceList(hotelRoomPrice);
    }

    /**
     * 新增酒店房型价格
     * 
     * @param hotelRoomPrice 酒店房型价格
     * @return 结果
     */
    @Override
    public int insertHotelRoomPrice(HotelRoomPrice hotelRoomPrice)
    {
        return hotelRoomPriceMapper.insertHotelRoomPrice(hotelRoomPrice);
    }

    /**
     * 修改酒店房型价格
     * 
     * @param hotelRoomPrice 酒店房型价格
     * @return 结果
     */
    @Override
    public int updateHotelRoomPrice(HotelRoomPrice hotelRoomPrice)
    {
        return hotelRoomPriceMapper.updateHotelRoomPrice(hotelRoomPrice);
    }

    /**
     * 批量删除酒店房型价格
     * 
     * @param roomPriceIds 需要删除的酒店房型价格ID
     * @return 结果
     */
    @Override
    public int deleteHotelRoomPriceByIds(Long[] roomPriceIds)
    {
        return hotelRoomPriceMapper.deleteHotelRoomPriceByIds(roomPriceIds);
    }

    /**
     * 删除酒店房型价格信息
     * 
     * @param roomPriceId 酒店房型价格ID
     * @return 结果
     */
    @Override
    public int deleteHotelRoomPriceById(Long roomPriceId)
    {
        return hotelRoomPriceMapper.deleteHotelRoomPriceById(roomPriceId);
    }
}
